package com.kuangstudy.struct;

/**
 * ClassName: ForDemo2
 * date: 2021/7/10/010
 *
 * @author zlk
 */
public class ForDemo2 {
    public static void main(String[] args) {
        //for (int j = 1; j <= 9; j++) {
        //    for (int i = 1; i <= j; i++) {
        //        System.out.print(j+"*"+i+"="+j*i+"\t");
        //    }
        //    System.out.println();
        //}
    //    打印99乘法表
        for (int i = 1; i <= 9; i++) {
            for (int j = 1; j <= i; j++) {
                System.out.print(j+"*"+i+"="+i*j+"\t");
            }
            System.out.println();
        }

    }
}
